
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 Predeploymachine 分页列表
*/
export function getPredeploymachinePagination(data: any) {
  return axios.get(`${context}/predeploymachine/pagination`, { params: data });
}


/**
 * 获取 Predeploymachine 所有数据
*/
export function getPredeploymachineAllList(data: any) {
  return axios.get(`${context}/predeploymachine/all`, { params: data });
}


/**
 * 获取 Predeploymachine 详情
*/
export function getPredeploymachineDetailById(id: any) {
  return axios.get(`${context}/predeploymachine/${id}`, { params:{id} });
}


/**
 * 新增 Predeploymachine
*/
export function addPredeploymachine(data: any) {
  return axios.post(`${context}/predeploymachine`, data);
}

/**
 * 修改 Predeploymachine
*/
export function updatePredeploymachine(data: any) {
  return axios.put(`${context}/predeploymachine`, data);
}

/**
 * 删除 Predeploymachine
*/
export function batchRemovePredeploymachine(data: any) {
  return axios.post(`${context}/predeploymachine/batchRemove`, data);
}

    